#include <bits/stdc++.h>
using namespace std;
int l[] = {7, 4, 6, 3, 10, 9};
int main(){
    freopen("color.in", "r", stdin);
    freopen("color.out", "w", stdout);
    int n, m;
    scanf("%d%d", &n, &m);
    for(int i = 0; i < (n - 1); i++){
        printf("%d\n", l[(((i % 3) + 4) * 2) % 6]);
    }
    return 0;
}